SET MATRIX TRIM

This command will set the texture tile trim value of a matrix.

  Syntax
SET MATRIX TRIM Matrix Number, TrimX, TrimY
  Parameters
Matrix Number
Integer
The matrix number
TrimX
Float
The trim is a float value and determines how much of the edge of the texture tile is trimmed from the final rendered output
TrimY
Float
This value is a float number such as 0.5

  Returns

This command does not return a value.

  Description

The trim is a float value and determines how much of the edge of the texture tile is trimmed from the final rendered output. The texture tile is the visible tile that is drawn to a grid tile of the matrix, and can sometimes suffer from the "ugly lines" scenario when filtering causes pixels from neighboring texture tiles to be rendered. The trim value ensures these pixels can be ignored by moving the area to be used away from the neighboring texture tile.

  Example Code
ink rgb(0,255,0),0
box 1,1,101,101
get image 1,0,0,101,101
make matrix 1,1000,1000,25,25
prepare matrix texture 1,1,1,1
position matrix 1,0,0,0
set matrix priority 1,0
set matrix trim 1,0.5
update matrix 1
do
loop
if matrix exist(1)=1 then delete matrix 1
end
  See also

MATRIX Commands Menu
Index